package com.jintian.smart.kernel.core.expr;

import java.util.HashMap;
import java.util.Map;

public interface IExpressionCalc {

    Object calculate(String expr, Map<String, Object> variants);

    void setFunctionRepository(IFunctionRepository repository);

    void reloadFunctions();

    default Map<String, Object> getLocalContext() {
        return new HashMap<>();
    }
}
